'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    // const { digitId } = ctx.helper.validate(rules.digitId, ctx.params, rules.digitIdToNumber);
    try {
      ctx.body = {
        result: 0,
        msg   : 'ok',
      };
    } catch (err) {
      ctx.logger.warn(`删除管理员异常 err ${err.stack ? err.stack : err}`);
      ctx.body = {
        result: 1,
        msg   : '未知异常',
      };
    }
  }
}

module.exports = HomeController;
